package org.lyg.dao;

import org.lyg.domain.Blog;
import org.lyg.domain.BlogCondition;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IBlogMapper {
    List<Blog> list(BlogCondition condition);

    Blog getBlogById(int id);

    int getCountByUserId(int id);

    int update(Blog blog);

    List<Blog> getBlogByUserId(int id);

    int save(Blog blog);

    void del(int id);
}
